import request from '@/utils/request'

/*首页轮播图-未登录*/
    export const api_swiperUn_list = (url,form) => 
    request({
        url:'/sys/index_image/get_index_image_list',
        method: 'get',
        params:{
        	
        }
    })

	export const submit_swiper_un = (url,form) => 
    request({
        url,
        method: 'post',
        data:JSON.stringify(form) 
    })
    
    export const del_swiper_un = (code) => 
    request({
        url:'/sys/index_image/delete_index_image',
        method: 'get',
        params:{
            code
        }
    })
    


    // 获取最新动态列表
    export const api_theme_list = () => 
    request({
        url:'/sys/latest_news/get_latest_news_list',
        method: 'get',
        params:{
            
        }
    })

    // 获取指定的最新动态
    export const get_activeModal = (code) => 
    request({
        url:'/sys/latest_news/get_latest_news',
        method: 'get',
        params:{
            code
        }
    })

    // 提交最新动态详情
    export const submit_latest_news = (url,form) => 
    request({
        url,
        method: 'post',
        data:JSON.stringify(form)
    })

    // 删除 最新动态
    export const del_activeImg = (code) => 
    request({
        url:'/sys/latest_news/delete_latest_news',
        method: 'get',
        params:{
            code
        }
    })
